<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">


<div class="container-fluid">
	<div class="row">
		<div class="panel panel-default">
			<div class="panel-heading">
				<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> 条件查找
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">收益状态</div>
								<div class="col-md-7">
									<select id="status" name="status" class="form-control">
										<option Value="">全部</option>
										<option Value="1">未结算</option>
										<option Value="2">已结算</option>
										<option Value="3">已打款</option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">创建时间</div>
								<div class="col-md-7">
									<input type="text" class="form-control" runat="server" id="createTime"
										   name="createTime" />
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">收益来源</div>
								<div class="col-md-7">
									<select id="source" name="source" class="form-control">
										<option Value="">全部</option>
										<option Value="1">广告收入</option>
									</select>
								</div>
							</div>
						</div>
					</div>

					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">收益数据</div>
								<div class="col-md-7">
									<select id="sysData" name="sysData" class="form-control">
										<option Value="">全部</option>
										<option Value="0">创作者收益</option>
										<option Value="1">系统收益</option>
									</select>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">流水号</div>
								<div class="col-md-7">
									<input id="flowNo" name="flowNo" class="form-control"/>

								</div>
							</div>
						</div>
					</div>

					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">用户口令</div>
								<div class="col-md-7">
									<input id="word" name="word" class="form-control"/>

								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">平台类型</div>
								<div class="col-md-7">
									<select id="platformType" name="platformType" class="form-control">
										<option Value="">全部</option>
										<option Value="4">抖音</option>
										<option Value="5">快手</option>
									</select>
								</div>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>

		<!--/col-->
	</div>
	<!--/条件查找-->
</div>

<div class="wrapper wrapper-content ">
	<div class="col-sm-12">
		<div class="ibox">
			<div class="ibox-body">
				<div class="fixed-table-toolbar">
					<div class="columns pull-left">

						<button shiro:hasPermission="wallpaper:balanceRecord:add" type="button" class="btn  btn-primary" onclick="copyData()">
							<i class="fa fa-copy" aria-hidden="true"></i>复制数据
						</button>
						<button shiro:hasPermission="wallpaper:balanceRecord:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
							<i class="fa fa-trash" aria-hidden="true"></i>删除
						</button>
					</div>
					<div class="columns pull-right">
						<button class="btn btn-success" onclick="reLoad()">查询</button>
					</div>
					<div class="columns pull-right">
						<button class="btn btn-default" onclick="restLoad()" style="margin-right: 20px;">重置</button>
					</div>
					<div class="columns pull-right col-md-2 nopadding">

					</div>
				</div>
				<table id="exampleTable" data-mobile-responsive="true">
				</table>
			</div>
		</div>
	</div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
<div>
	<script type="text/javascript">
		var s_edit_h = 'hidden';
		var s_remove_h = 'hidden';
		var s_resetPwd_h = 'hidden';
	</script>
</div>
<div shiro:hasPermission="wallpaper:balanceRecord:edit">
	<script type="text/javascript">
		s_edit_h = '';
	</script>
</div>
<div shiro:hasPermission="wallpaper:balanceRecord:remove">
	<script type="text/javascript">
		var s_remove_h = '';
	</script>
</div>
<div shiro:hasPermission="wallpaper:balanceRecord:resetPwd">
	<script type="text/javascript">
		var s_resetPwd_h = '';
	</script>
</div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/appjs/wallpaper/balanceRecord/balanceRecord.js" th:src="@{/js/appjs/wallpaper/balanceRecord/balanceRecord.js}"></script>

<script th:inline="javascript">
	var platformTypes = [[${platform_type}]];
</script>

<script>
	var date = new Date();
	let tDate = date .getFullYear();
	let tMonth = (date .getMonth() < 10 ? 0 +""+(date .getMonth() +1 ) : date .getMonth());
	let tDay = (date .getDate()<10?0+""+date .getDate() : date .getDate());
	tDate = tDate + "-"+tMonth+"-"+tDay;

	$("#createTime").val(tDate);
	$(function (){
		layui.use(['upload','laydate'], function () {



			layui.laydate.render({
				elem: '#createTime' //指定元素
				,type:'date'
				/*,range: true*/
				,format:'yyyy-MM-dd'//默认格式
				,value: ''//初始默认时间 2020-02-22
				,min: '2017-1-1'
				,max:  0
				,theme: '#393D49'
				,ready: function(date){
					console.log(date); //得到初始的日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
				}
				,change: function(value, date, endDate){
					console.log(value); //得到日期生成的值，如：2017-08-18
				}
				,done: function(value, date, endDate){
					console.log(value); //得到日期生成的值，如：2017-08-18

				}
			});
		})
	})
</script>

</body>
</html>
